<%@ page language="java" %>

<%@ page import="java.util.ArrayList,
                 com.scalar.chiptrack.commons.SessionKeys,
                 com.scalar.chiptrack.utils.ConfigManager,
				 com.scalar.chiptrack.commons.Constants,
				 com.scalar.chiptrack.users.Functionality,
				 com.scalar.chiptrack.users.User,
				 com.scalar.chiptrack.operations.assemblyrelease.AssemblyRelease"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<chiptrack:checkLogon sourcePage="/assemblyRelease.do" />
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac </TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet"></HEAD>
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/assembly_release.js"></script>

<style>
<!--
.HEADING     { cursor: hand; font-family: Verdana; font-size: 8pt; color: #000000;
               background-color: #FFFFFFF; font-weight: bold;
               border: 0 solid #000000  COLOR: #000000;}
-->
</style>

<SCRIPT language="JavaScript">
	var focusNum = 0;
	var dateElement = "";
	function openCalendar( dateValue )
	{
		dateElement = dateValue;
		newWindow = window.open('<%=chipTracContext%>/jsp/includes/calendar.html','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=180,height=440,resizable=no');
		newWindow.moveTo(550,180);
		newWindow.focus();
	}

	function assignDate( passedValue )
	{
		if ( typeof ( dateElement.value ) == 'undefined')
		{
			document.assemblyReleaseForm.releaseDate.value = passedValue;
		}
		else
		{
			dateElement.value=passedValue;
		}
		window.focus();
	}

    function callFlash(rowName)
    {
        var obj = eval("document.all."+rowName);

		if(obj.style.display == "none"){
			obj.style.display = "block";
		}else{
            obj.style.display = "none";
		}
    }

    function confirmCancel()
    {
        document.assemblyReleaseForm.action.value = "cancel";
        document.assemblyReleaseForm.confirm.value = "TRUE";
        document.assemblyReleaseForm.submit();
    }

    function confirmClose()
    {
        //Added by Suresh Yeruva on [18 AUG 2004]
        var noOfRows = document.assemblyReleaseForm.noOfRows.value;
        for( i = 0; i < noOfRows; i ++ )
        {
            if( typeof document.assemblyReleaseForm['lotList[' + i + '].selectLot'] != "undefined" )
            {
                if( document.assemblyReleaseForm['lotList[' + i + '].selectLot'].checked == true )
                {
                    document.assemblyReleaseForm['lotList[' + i + '].selectLot'].disabled = false;
                }
            }
        }
        document.assemblyReleaseForm.action.value = "close";
        document.assemblyReleaseForm.confirm.value = "TRUE";
        document.assemblyReleaseForm.submit();
    }
</SCRIPT>

<%
    int forDieBank = 0;
    int forSort = 0;
    int forWaferStore = 0;
    int forFab = 0;
    int rowCount = 0;
%>

<BODY bgColor="#ffffff" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">

<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
	<TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

	<!-- Side Navigation start -->
	<%@ include file="/jsp/operations/releaseMenu.jsp" %></TD>
	<!-- end of the side navigations -->

	<TD bgcolor="#ffffff">
	<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
	<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
	<TD valign="top" width="100%">

	<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
	<BR>

	<html:form action="/assemblyRelease" method="POST" name="assemblyReleaseForm" type="com.scalar.chiptrack.operations.assemblyrelease.forms.AssemblyReleaseForm">
		<TABLE width="100%" align="right" cellpadding="2" cellspacing="2" border="0">
			<TR><TD colspan="9" class="NArialW" align="center">Assembly Release</TD></TR>
			<TR><TD colspan='9' align="left" class='NArialL'>&nbsp;<FONT id="errors" color='FF0000'></font></TD></TR>
			<TR><TD colspan='9'><chiptrack:errors styleClass="NArialL"/></TD></TR>
			<TR><TD colspan='9'><chiptrack:info styleClass="NArialL"/></TD></TR>
			<TR><TD colspan='9'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></TD></TR>
			<logic:equal name="action" value="cancel">
			    <TR>
                    <TD colspan='9' align="left" width="100%" class="NArialL"><font color="red">Are you sure that you wish to <bean:write name="action" /> this release </font>
			            <!-- a href="< %=chipTracContext%>/assemblyRelease.do?action=cancel&confirm=TRUE&assemblyReleaseId=< bean:write name="assemblyReleaseForm" property = "assemblyReleaseId" />"><img src='< %=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'></a -->
                        <a href="javascript:confirmCancel()"><img src='<%=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'></a>
			            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			            <a href="javascript:history.back(1)"><img src='<%=chipTracContext%>/jsp/includes/images/back.gif' border='0'></a>
			        </TD>
                </TR>
			</logic:equal>
			<logic:equal name="action" value="close">
			    <TR>
                    <TD colspan='9' align="left" width="100%" class="NArialL"><font color="red">Are you sure that you wish to <bean:write name="action" /> this release </font>
			            <!--a href="< %=chipTracContext%>/assemblyRelease.do?action=close&confirm=TRUE&assemblyReleaseId=< bean:write name="assemblyReleaseForm" property = "assemblyReleaseId" />"><img src='< %=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'></a-->
                        <a href="javascript:confirmClose()"><img src='<%=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'></a>
			            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			            <a href="javascript:history.back(1)"><img src='<%=chipTracContext%>/jsp/includes/images/back.gif' border='0'></a>
			        </TD>
                </TR>
			</logic:equal>
			<TR><TD colspan='9'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='20'></TD></TR>

			<TR><TD colspan="9"><!--Remove this line to revert back to normal old layout-->
			<TABLE width="100%"><!--Remove this line to revert back to normal old layout-->

			<TR><TD class="NArialL" width="25%"> Device:</TD>
			<TD class="NArialL" width="25%"><bean:write name="assemblyReleaseForm" property="deviceName" /><html:hidden name="assemblyReleaseForm" property="deviceName" /></TD>

			<TD class="NArialL" width="25%"> Ship To:</TD>
			<TD class="NArialL" width="25%"><bean:write name="assemblyReleaseForm" property="locationName" /></TD>
			</TR>

			<TR><TD class="NArialL" width="25%"> PO Number:</TD>
			<TD class="NArialL" width="25%"><bean:write name="assemblyReleaseForm" property="poNumber" /></TD>

			<TD class="NArialL" width="25%"> Release Date:</TD>
			<TD class="NArialL" width="25%">

            <bean:write name="assemblyReleaseForm" property="releaseDate" />
			</TD>
			</TR>

			</TABLE><!--Remove this line to revert back to normal old layout-->
			</TD></TR><!--Remove this line to revert back to normal old layout-->

			<TR><TD width="100%" colspan="9"><!--Remove this line to revert back to normal old layout-->

            <table align = "center" border="0" width="85%" id="AutoNumber2" height="208">
            <TR>
            <TD align="left" class='NArialL' colspan="4">&nbsp;<FONT id="locationMessage" color='FF0000'></font></TD></TR>
            <tr bgcolor="#993333" border = "0">
            <td width="20%" height="1" align="center" border = "2" class='NArialL'><font color="#FFFFFF">Select</font></td>
            <td width="20%" height="1" align="center" class='NArialL'><font color="#FFFFFF">Lot Number</font></td>
            <td width="30%" height="1" align="center">
              <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
              <tr>
                <td width="100%" colspan="3" align="center" class='NArialL'><font color="#FFFFFF">Current Quantity</font></td>
              </tr>
              <tr>
                <td width="50%" align="center" class='NArialL'><font color="#FFFFFF">Wafer</font></td>
                <td width="50%" align="center" class='NArialL'><font color="#FFFFFF">Die</font></td>
              </tr>
              </table>
            </td>

            </td>
            <td width="30%" height="1" align="center"><font class='NArialL'>
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4">
              <tr>
                <td width="100%" colspan="3" align="center" class='NArialL' nowrap><font color="#FFFFFF">Quantity Pulled</font></td>
              </tr>
              <tr>
                <td width="50%" align="center" class='NArialL'><font color="#FFFFFF">Wafer</font></td>
                <td width="50%" align="center" class='NArialL'><font color="#FFFFFF">Die</font></td>
              </tr>
            </table>
            </td>

            </td>
          </tr>


        <nested:iterate id = "lotList" property="lotList" type="com.scalar.chiptrack.operations.assemblyrelease.AssemblyRelease" scope="session">

			<logic:notEqual name="assemblyReleaseForm" property="assemblyReleaseStatus" value="<%=Constants.ASSEMBLY_RELEASE_CANCELLED_STATUS%>" >
            <!-- Added by SharatH on 10th June 04-->
            <nested:equal property="selectLot" value="true">  <!-- Added by Suresh Yeruva on [ 11 AUG 2004 ]-->
            <%
                if( forFab == 0 && lotList.getProcessTypeName().equalsIgnoreCase( "FAB" ) )
                {
                    out.println( "<TR><TD colspan='4' width='80%' class='NArialL' bgcolor='#D1D1D1' align='Left'>&nbsp;FAB </TD></TR>" );
                    forFab++;
                }
                if( forWaferStore == 0 && lotList.getProcessTypeName().equalsIgnoreCase( "Wafer Store" ) )
                {
                    out.println( "<TR><TD colspan='4' width='80%' class='NArialL' bgcolor='#D1D1D1' align='Left'>&nbsp;Wafer Store </TD></TR>" );
                    forWaferStore++;
                }
                if( forSort == 0 && lotList.getProcessTypeName().equalsIgnoreCase( "SORT" ) )
                {
                        out.println( "<TR><TD colspan='4' width='80%' class='NArialL' bgcolor='#D1D1D1' align='Left'>&nbsp;SORT </TD></TR>" );
                        forSort++;
                }
                if( forDieBank == 0 && lotList.getProcessTypeName().equalsIgnoreCase( "Die Bank" ) )
                {
                        out.println( "<TR><TD colspan='4' width='80%' class='NArialL' bgcolor='#D1D1D1' align='Left'>&nbsp;Die Bank </TD></TR>" );
                        forDieBank++;
                }

            %>

      <tr bgcolor="#DEE1E2" ID='head0'>
        <%
        int waferListSize = lotList.getWafersListCount();
        %>

        <td width="16%" height="19"  align="center" class="NArialL">

            <%
            if( lotList.getProcessTypeName().equalsIgnoreCase( "SORT" ) ) {
            if( lotList.getWafersListCount()== 0 ) {
            %>
                    <nested:checkbox property="selectLot" styleClass="txfield" disabled="true"/>
            <%  } else { %>
                    <nested:checkbox property="selectLot" styleClass="txfield" disabled="true"/>
            <%  }
            } else if( lotList.getProcessTypeName().equalsIgnoreCase( "Die Bank" ) ) {
            if( lotList.getWafersListCount()== 0 ) {
            %>
                    <nested:checkbox property="selectLot" styleClass="txfield" disabled="true"/>
            <% } else { %>
                    <nested:checkbox property="selectLot" styleClass="txfield" disabled="true"/>
            <%  }
            %>

            <% } else {%>
                <nested:checkbox property="selectLot" styleClass="txfield" disabled="true"/>
            <% }%>

            <nested:hidden property = "selectLotOld"/>
            <nested:hidden property = "processTypeName"/>
            <nested:hidden property = "grossDiePerWafer"/>
            <nested:hidden property = "processStepId" />
            <nested:hidden property = "lotId" />
        </td>


        <%
        if( lotList.getProcessTypeName().equalsIgnoreCase( "SORT" ) ) {
        %>
           <td width="17%" height="19" align="left" <%if( waferListSize > 0){%> CLASS="HEADING" onclick = "callFlash('rowName<%=rowCount%>')" <%}else{%> class="NArialL" <%}%> ><%if( waferListSize > 0){%><font class='NArialL'><IMG src="<%=chipTracContext%>/jsp/includes/images/bullet2.GIF" width="12" height="12"></font>&nbsp;<%}%><nested:write property="lotNumber" /></td>
        <%
        } else if( lotList.getProcessTypeName().equalsIgnoreCase( "Die Bank" ) ) {
        %>
           <td width="17%" height="19" align="left" <%if( waferListSize > 0){%> CLASS="HEADING" onclick = "callFlash('rowName<%=rowCount%>')" <%}else{%> class="NArialL" <%}%> ><%if( waferListSize > 0){%><font class='NArialL'><IMG src="<%=chipTracContext%>/jsp/includes/images/bullet2.GIF" width="12" height="12"></font>&nbsp;<%}%><nested:write property="lotNumber" /></td>
        <%
        } else {
        %>
            <td width="17%" height="19" align="left" class="NArialL"><nested:write property="lotNumber" /></td>
        <%
        }
        %>

        <td width="17%" height="19" align="center">
        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4" align="right" height="19">
          <tr>
            <td width="50%" align="center" valign="top"><nested:text property="waferQuantity" styleClass="valuetxfield" size="16" disabled="true" readonly="true" />&nbsp;</td>
            <td width="50%" align="center" valign="top">
                <%
                if( lotList.getProcessTypeName().equalsIgnoreCase( "Die Bank" ) ) {
                %>
                    <nested:text property="dieQuantity" styleClass="valuetxfield" size="16" disabled="true" readonly="true" />
                <%
                } else { %>
                    <nested:hidden property="dieQuantity" />
                <% }
                if( lotList.getProcessTypeName().equalsIgnoreCase( "SORT" ) ) {
                %>
                    <nested:text property="dieQuantity" styleClass="valuetxfield" size="16" disabled="true" readonly="true" />
                <%}%>
            </td>
          </tr>
        </table>
        </td>
        <td width="17%" height="19"  align="center"><!--nested:text property="quantityPull" styleClass="valuetxfield" size="16" disabled = "true" onchange="<%//=tempString%>"/-->
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4" align="right" height="19">
                <tr>
                    <td width="50%" align="center" height="19" valign="top">
                       <nested:text property="waferQuantityPull" styleClass="valuetxfield" size="16" disabled="true" />&nbsp;
                    </td>
                    <td width="50%" align="center" height="19" valign="top">
                        <%
                        if( lotList.getProcessTypeName().equalsIgnoreCase( "SORT" ) || lotList.getProcessTypeName().equalsIgnoreCase( "Die Bank" ) )
                        {
                        %>
                            <nested:text property="dieQuantityPull" styleClass="valuetxfield" size="16" disabled="true" />
                        <%
                        }
                        if( lotList.getProcessTypeName().equalsIgnoreCase( "FAB" ) || lotList.getProcessTypeName().equalsIgnoreCase( "WAFER STORE" ))
                        {
                        %>
                            <nested:hidden property="dieQuantityPull" />
                        <%}%>
                    </td>
                </tr>
            </table>
            <nested:hidden property="wafersListCount" />
        </td>
        </tr>

      <tr>
        <td width="100%" height="1" colspan="4">
        <table border="0" width="100%" id="rowName<%=rowCount%>" style="display=block"  height="79">
        <% if ( waferListSize > 0){ %>

		  <tr>
			<td width="100%" height="19" colspan="17" class="NArialL">
			Bin Information</td>
		  </tr>
          <tr bgcolor="#707070">
            <td width="5%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Wafer<br>Id</font></font></td>
            <td width="5%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>1</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>2</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>3</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>4</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>5</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>6</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>7</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>8</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>9</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>10</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>11</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>12</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>13</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>14</font></font></td>
			<td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Bin<br>15</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Total</font></font></td>
            <td width="6%" align="center" height="40"><font class='NArialL'>
			    <font color="#FFFFFF">Select</font></font></td>
          </tr>
         <%}%>
         <%  if( lotList.getProcessTypeName().equalsIgnoreCase("SORT") || lotList.getProcessTypeName().equalsIgnoreCase("Die Bank") ){
                if( lotList.getWafersListCount()!= 0 ) {
        %>
                <nested:iterate id = "waferList" property = "assemblyReleaseWaferInfoList" type="com.scalar.chiptrack.operations.assemblyrelease.AssemblyReleaseWaferInfo" >
                      <tr bgcolor = "#fffee">
                        <td width="5%" align="center" height="18" class="NArialL"><nested:write property = "waferId"/></td>
                        <td width="5%" align="center" height="18" class="NArialL"><nested:write property = "bin1"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin2"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin3"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin4"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin5"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin6"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin7"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin8"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin9"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin10"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin11"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin12"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin13"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin14"/></td>
                        <td width="6%" align="center" height="18" class="NArialL"><nested:write property = "bin15"/></td>
                        <td width="6%" align="center" height="18"><nested:text property="totalBinQuantity" styleClass="valuetxfield" size="10" disabled = "true" readonly = "true" /></td>
                        <td width="6%" height="18"  align="center"><nested:hidden property = "waferSelectedOld" />
                        <nested:checkbox property = "waferSelected" disabled = "true"/></td>
                      </tr>
                 </nested:iterate>
            <%      }
                }
            %>
        </table>

        </td>
      </tr>

    </nested:equal>
    </logic:notEqual>
    <% rowCount++; %>
    </nested:iterate>

    <%
                if( forFab == 0 )
                {
                   out.println( "<TR><TD colspan='4' class='NArialL' bgcolor='#D1D1D1' align='Left'>&nbsp;FAB </TD></TR><TR bgcolor='#DEE1E2'><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR>" );
                }
                if( forWaferStore == 0 )
                {
                   out.println( "<TR><TD colspan='4' class='NArialL' bgcolor='#D1D1D1' align='Left'>&nbsp;Wafer Store </TD></TR><TR bgcolor='#DEE1E2'><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR>" );
                }
                if( forSort == 0 )
                {
                   out.println( "<TR><TD colspan='4' class='NArialL' bgcolor='#D1D1D1' align='Left'>&nbsp;SORT </TD></TR><TR bgcolor='#DEE1E2'><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR>" );
                }
                if( forDieBank == 0 )
                {
                   out.println( "<TR><TD colspan='4' class='NArialL' bgcolor='#D1D1D1' align='Left'>&nbsp;Die Bank </TD></TR><TR bgcolor='#DEE1E2'><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR>" );
                }

   %>

</table><!--Remove this line to revert back to normal old layout-->
			</TD></TR><!--Remove this line to revert back to normal old layout-->

			<TR><TD colspan="9" width="100%"><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height="15" width="1"></TD></TR>
			<TR><TD width="100%" class="NArialL" align="center" bgcolor="#DEE1E2" colspan="10">Build Information </TD></TR>
			<TR><TD colspan="9" width="100%"><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height="15" width="1"></TD></TR>
			<TR><TD width="100%" colspan="9" align="center">

            <logic:notEqual name="showSaveButton" value="TRUE">
             <TABLE width="100%" border="0">
				<TR><TD class="NArialL" width="25%"> Bonding Diagram:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="bondingDiagram" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				<TD class="NArialL" width="25%"> PN Marking:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="pnMarking" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				</TR>

				<TR>
				<TD class="NArialL" width="25%"> Package:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="packaze" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				<TD class="NArialL" width="25%"> Category:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="category" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				</TR>

                <TR>
				<TD class="NArialL" width="25%"> Fuse File Location:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="fuseFileLocation" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				<TD class="NArialL" width="25%"> Wafer Map Location:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="waferMapLocation" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				</TR>

                <TR>
				<TD class="NArialL" width="25%"> Mark At Assembly(MAA):</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="markAtAssembly" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				<TD class="NArialL" width="25%"> Mark At Test(MAT):</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="markAtTest" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				</TR>

                <TR>
				<TD class="NArialL" width="25%"> Line-1:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="line1" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				<TD class="NArialL" width="25%"> Line-2:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="line2" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				</TR>

                <TR>
				<TD class="NArialL" width="25%"> Line-3:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="line3" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				<TD class="NArialL" width="25%"> Line-4:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="line4" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				</TR>

                <TR>
				<TD class="NArialL" width="25%"> Line-5:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="line5" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
				<TD class="NArialL" width="25%"> Line-6:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="line6" maxlength="50" styleClass="txfield" size="24"  disabled="true" />
				</TD>
				</TR>

                <TR>
				<TD class="NArialL" width="25%"> Build Instruction:</TD>
				<TD class="NArialL" width="25%">
				<html:text name="assemblyReleaseForm" property="buildInstruction" maxlength="50" styleClass="txfield" size="24" disabled="true" />
				</TD>
                <TD class="NArialL" width="25%"> Special Instructions:</TD>
				<TD class="NArialL" width="25%">
				<html:textarea name="assemblyReleaseForm" property="specialInstruction" styleClass="txfield" rows="4" cols ="40" disabled="true" />
				</TD>
				</TR>
            </TABLE>
          </logic:notEqual>

         	</TD></TR>


			<!--All the important and needed parameters are being placed in the single row as hidden parameters just for easy maintainance of code Bhaskar on 5 May 2004. Please check before changing the layout at any other point of time.-->
			<TR><TD colspan="9" width="100%">
			<html:hidden name="assemblyReleaseForm" property="productId" />
			<html:hidden name="assemblyReleaseForm" property="baseProductName" />
			<html:hidden name="assemblyReleaseForm" property="locationId" />
            <html:hidden name="assemblyReleaseForm" property="fromLocationId" />
			<html:hidden name="assemblyReleaseForm" property="processStepId" />
			<html:hidden name="assemblyReleaseForm" property="processTypeName" />
			<html:hidden property="assemblyReleaseId" />
			<html:hidden name="assemblyReleaseForm" property="assemblyReleaseStatusId" />
			<html:hidden name="assemblyReleaseForm" property="assemblyReleaseStatus" />
			</TD></TR>

			<TR><TD colspan='9'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='20'></TD></TR>
		</TABLE>
		<input type="hidden" name="action" >
        <input type="hidden" name="confirm" >
        <input type="hidden" value = "<%=rowCount%>" name = "noOfRows"/>
		<input type="hidden" name="assemblyReleaseIdTemp" value = "<bean:write name="assemblyReleaseForm" property="assemblyReleaseId" />">
	</html:form>

<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->

</BODY>
</HTML>